package com.shrfid.rfidsdk.tag.base;


public abstract class BaseResponseFrame {

    protected byte len;                                       //帧长度
    protected byte status;                                    //执行结果状态值 0x00表示成功
    protected byte[] params;                                   //参数
    protected byte[] crc;


    protected abstract byte[] toBytes();

    public abstract String generateKey();

    public abstract boolean checkSelf();

    public abstract byte getRollCode();


    public byte getLen() {
        return len;
    }

    public void setLen(byte len) {
        this.len = len;
    }

    public byte getStatus() {
        return status;
    }

    public void setStatus(byte status) {
        this.status = status;
    }

    public byte[] getParams() {
        return params;
    }

    public void setParams(byte[] params) {
        this.params = params;
    }

    public byte[] getCrc() {
        return crc;
    }

    public void setCrc(byte[] crc) {
        this.crc = crc;
    }
}
